from rest_framework import serializers
from .models import *

class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'

class ZizhuSerializer(serializers.ModelSerializer):
    class Meta:
        model = ZiZhu
        fields = '__all__'

class MeishiSerializer(serializers.ModelSerializer):
    hours = serializers.IntegerField(read_only=True)
    class Meta:
        model = Meishi
        fields = '__all__'



